package Java8.Lambda;

import java.util.Arrays;

/**
 * TOOD
 *
 * @author long
 * @date 2020-02-18 16:22
 */
public class demo1 {
    public static void main(String[] args) {
    /* Arrays.asList("a","b","c").forEach(e->
                {
                    System.out.println(e);
                    System.out.println(e+e);
                }
                );*/
  /*  Arrays.asList("a","b","c","d").sort(((e1,e2)->e1.compareTo(e2)));
    }*/
        Arrays.asList("a", "b", "d").sort((e1, e2) -> {
            int result = e1.compareTo(e2);
            return result;
        });
    }


}
